﻿using DFGK_WMS.Model.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DFGK_WMS.IRepository
{
    public interface ITownerRepository: IBaseRepository<TOwner>
    {
        /// <summary>
        /// 添加货主信息
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        bool AddTowner(TOwner obj);
        /// <summary>
        /// 获取货主信息
        /// </summary>
        /// <param name="hname"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name="totalCount"></param>
        /// <returns></returns>
        List<TOwner> GetTownerList(string hname, int pageIndex, int pageSize, out int totalCount);
        /// <summary>
        /// 修改货主信息
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        bool UpdateTowner(TOwner obj);
        /// <summary>
        /// 删除货主信息
        /// </summary>
        /// <param name="uid"></param>
        /// <returns></returns>
        bool DelTowner(int uid);
        /// <summary>
        /// 根据id获取货主信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        TOwner GetTownerById(int id);
    }
}
